package jd.se.book;

import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper //本注解明确说明本接口是mybatis的映射器
public interface BookDao {
    List<Book> findBookList(QueryDto queryDto);

    @Insert("insert into reserve_info(borrower_id,b_id,borrow_date) values(#{current_id},#{b_id},#{current_date})")
    void insertinfo(BorrowDto dto);
}